home *** CD-ROM | disk | FTP | other *** search
/ CD/PC Actual 76 / DVD Actual 1 Marzo 2003.iso / Trial / TurboCAD 7.1 Pro / Data.Cab / F25224_helpStrings.java < prev    next >
Encoding:
Text File  |  2000-11-10  |  2.6 KB  |  35 lines

  1. /** 
  2.     Help and code descriptions
  3.  */
  4. final class helpStrings 
  5. {
  6.  
  7.     public static final String General =
  8.     "<FONT COLOR='#FF0000'>General Overview: (See frequently asked questions or the SDKDemo example code for more details)<br>" +
  9.     "  <FONT COLOR='#0000C0'>To connect using Java to the IMSI SDK use the following syntax:<br>" +
  10.     "    <FONT COLOR='#0000FF'>imsigx40.IApplication m_IApp = (imsigx40.IApplication) new imsigx40.XApplication();<br><br>" + 
  11.     "  <FONT COLOR='#0000C0'>To load a drawing:<br>" +
  12.     "    <FONT COLOR='#0000FF'>imsigx40.Drawings m_IDrawings = (imsigx40.Drawings) m_IApp.getDrawings();<br>" +
  13.     "    <FONT COLOR='#0000FF'>com.ms.com.Variant nParam = new com.ms.com.Variant(); <FONT COLOR='#0080A0'>// create a variant to use as blank parameter<br>" +
  14.     "    <FONT COLOR='#0000FF'>nParam.noParam(); <br>" +
  15.     "    <FONT COLOR='#0000FF'>imsigx40.IDrawing m_ITheDrawing = (imsigx40.IDrawing) m_IDrawings.Open(m_fileName, nParam, nParam);<br><br>" +
  16.     "  <FONT COLOR='#0000C0'>To display a drawing or graphics:<br>" +
  17.     "    <FONT COLOR='#0000FF'>m_IViews = (imsigx40.Views) m_ITheDrawing.getViews();  <FONT COLOR='#0080A0'>// get a views collection (container)<br>" +
  18.     "    <FONT COLOR='#0000FF'>m_ITheView = (imsigx40.View) m_IViews.Add(nParam, nParam);<br>" +
  19.     "    <FONT COLOR='#0000FF'>m_ITheView.putUpdate(b);  <FONT COLOR='#0080A0'>// delay update until refresh()<br>" +
  20.     "    <FONT COLOR='#0000FF'>int CompHwnd = 0;<br>" +
  21.     "    <FONT COLOR='#0000FF'>ComponentPeer p = this.getPeer(); <FONT COLOR='#0080A0'>// get peer<br>" +
  22.     "    <FONT COLOR='#0000FF'>ComponentPeerX peer1 = (ComponentPeerX) p;<br>" +
  23.     "    <FONT COLOR='#0000FF'>CompHwnd = peer1.gethwnd();  <FONT COLOR='#0080A0'>// Microsoft specific method to get window handle<br>" +
  24.     "    <FONT COLOR='#0000FF'>m_ITheView.putHWND(CompHwnd);<br>" +
  25.     "    <FONT COLOR='#0000FF'>m_ITheView.putMappingMode(1);<br>" +
  26.     "    <FONT COLOR='#0000FF'>byte b = 0;<br>" +
  27.     "    <FONT COLOR='#0000FF'>m_ITheView.putMargins(b);   <FONT COLOR='#0080A0'>// No margins<br>" +
  28.     "    <FONT COLOR='#0000FF'>b = 1;  // set to same aspect ratio<br>" +
  29.     "    <FONT COLOR='#0000FF'>m_ITheView.putFixedAspectRatio (b);<br>" +
  30.     "    <FONT COLOR='#0000FF'>m_ITheView.ZoomToExtents(); <FONT COLOR='#0080A0'>// Zoom to the largest extents of the drawing. This is used only for new drawings and if graphics are larger than the screen<br>" +
  31.     "    <FONT COLOR='#0000FF'>m_ITheView.Refresh(); <FONT COLOR='#0080A0'>// Call the SDK's Refresh method.<br>" ;
  32.  
  33. }
  34.  
  35.